dac0b61ac234ca2d99b48213e5da9d7752d26463,src/org/exist/xupdate/Modification.java,Modification,select,#DocumentSet#,115
Before Change
long start = System.currentTimeMillis();
Sequence resultSeq = expr.eval(null, null);
if (resultSeq.getItemType() != Type.NODE)
throw new EXistException("select expression should evaluate to a" + "node-set");
LOG.debug("found " + resultSeq.getLength() + " for select: " + selectStmt);
return (NodeList)resultSeq;
After Change
long start = System.currentTimeMillis();
Sequence resultSeq = expr.eval(null, null);
if (!Type.subTypeOf(resultSeq.getItemType(), Type.NODE))
throw new EXistException("select expression should evaluate to a node-set; got " +
Type.getTypeName(resultSeq.getItemType()));
LOG.debug("found " + resultSeq.getLength() + " for select: " + selectStmt);